Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest LBP design implementation for metri testing #1

Merged
merged 25 commits into from
Jan 12, 2025

Conversation

roleengineer
Copy link
Collaborator

Refactored the PoC to get Factory template.
Next step would be to implement actual factory logic.

@benjaminbollen benjaminbollen self-requested a review December 20, 2024 17:52
@roleengineer roleengineer changed the title Factory template for metri testing Latest LBP design implementation for metri testing Jan 10, 2025
@roleengineer
Copy link
Collaborator Author

Implemented the latest LBP design. Next step basic test coverage.

Copy link
Member

@benjaminbollen benjaminbollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I would perhaps request the following points (this can in parallel or before test deployment)

  1. I think we should explicitly check that the avatar sending their 48CRC hub.isHuman to exclude groups to partake
  2. Factory currently has backerOf, but can we also store the reverse mapping backer -> CirclesBacking and a func in Factory that checks in CirclesBacking.sol whether the callback createLBP has been completed (and the 1yr lock is still active) (effectively balancerPoolTokensUnlockTimestamp > 0 and balancerPoolTokensUnlockTimestamp < block.timestamp

this way I can in the supergroup call on the CirclesBackingFactory to ask if the address I want to trust has an actively backed and locked LBP present

amazing work 🚀

@roleengineer
Copy link
Collaborator Author

I've resolved review comments. Starting tests.

@roleengineer roleengineer merged commit d40bec8 into metri/testing Jan 12, 2025
2 checks passed
@benjaminbollen
Copy link
Member

Looks great to me !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants